package com.lsy.weizhi2.fragment;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.lsy.weizhi2.R;
import com.lsy.weizhi2.adapter.UnReadAdapter;

import java.util.List;

/**
 * Created by 嗨哟 on 2017/5/6.
 */

public class UnReadFragment extends Fragment {
    private Context context;
    private RecyclerView unread_rv;
    private UnReadAdapter unReadAdapter;
    private List<?> list;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.unread_fragment,container,false);
        unread_rv = (RecyclerView) view.findViewById(R.id.unread_rv);
        return view;
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        context=getActivity();
        LinearLayoutManager manager=new LinearLayoutManager(context);
        manager.setOrientation(LinearLayoutManager.VERTICAL);
        unread_rv.setLayoutManager(manager);

    }

    @Override
    public void onResume() {
        super.onResume();
    }
}
